package test05;

import java.util.Scanner;

public class Test05 {

    public static void main(String[] args) {
        /**
         *将一个数字字符串转换成逗号分隔的数字串，即从右边开始每三个数字用逗号分隔。
         */

        System.out.println("===========第五题======================");
        test05();

    }
    public  static  void  test05(){
        //输入一串数字
        Scanner scanner = new Scanner(System.in);
        String nums = scanner.nextLine();

        StringBuffer reNums = new StringBuffer(nums).reverse();
        for (int i = 3; i < reNums.length(); i += 4) {
            reNums.insert(i, ",");
        }

        nums = reNums.reverse().toString();
        System.out.println(nums);
    }
}
